unit UDateEditFrame;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, UEditorFrame, ComCtrls, StdCtrls;

type
  TDateEditFrame = class(TEditorFrame)
    dpValue: TDateTimePicker;
  private
    { Private declarations }
  public
    function GetData: string; override;
    procedure SetData(const Value: string); override;
  end;

implementation

{$R *.dfm}

{ TEditorFrame1 }

function TDateEditFrame.GetData: string;
begin
  Result := DateToStr(dpValue.Date);
end;

procedure TDateEditFrame.SetData(const Value: string);
begin
  dpValue.Date := StrToDate(Value);
end;

end.
